package com.lzf.yh.userService;

import com.lzf.yh.commons.JsonBean;
import com.lzf.yh.entity.OrderInfo;

/**
 * @Auther: Wyz
 * @Date: 2021/4/17 13:24
 * @Description:
 */
public interface OrderInfoService {

    JsonBean insertOrderInfo(OrderInfo orderInfo);

    JsonBean updateOrderInfoStartsToOneByOrderInfoId(String orderid,Integer userid);

    /**
     * 根据userid查询出自己的所有订单，并按照订单状态排序
     * @param userid
     * @return
     */
    JsonBean selectAllOrderInfoByUserID(Integer userid);


    JsonBean updateOrderInfoStartsToThreeByOrderInfoId(String orderId);


    /**
     * 根据用户id查出所有状态为0的  下边分别是1 2 3
     * @param userid
     * @return
     */
    JsonBean selectAllOrderInfoStatusYesZeroByUserId(Integer userid);

    JsonBean selectAllOrderInfoStatusYesOneByUserId(Integer userid);

    JsonBean selectAllOrderInfoStatusYesTwoByUserId(Integer userid);

    JsonBean selectAllOrderInfoStatusYesThreeByUserId(Integer userid);
}
